home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.compilers / comp.sys.amiga.programmer_20928_000002.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  1.9 KB

  1. Path: etek.chalmers.se!chalmers.se!sunic!mcsun!uunet!europa.asd.contel.com!gatech!concert!sas!mozart.unx.sas.com!walker
  2. From: walker@twix.unx.sas.com (Doug Walker)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SAS C 6.0 weirdness with __inline
  5. Message-ID: <BwDv6w.M3L@unx.sas.com>
  6. Date: 19 Oct 92 19:23:19 GMT
  7. References: <0s6zr9@rpi.edu> <kruse.719496887@eola.cs.ucf.edu> <BwDGJJ.452@unx.sas.com>
  8. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  9. Organization: SAS Institute Inc.
  10. Lines: 28
  11. Originator: walker@twix.unx.sas.com
  12. Nntp-Posting-Host: twix.unx.sas.com
  13.  
  14.  
  15. In article <BwDGJJ.452@unx.sas.com>, walker@twix.unx.sas.com (Doug Walker) writes:
  16. |> This is not a bug.  The inlining is performed by the global optimizer.
  17. |> Hence, if you don't run the global optimizer, you don't get inlining.
  18. |> You will need to declare a "real" version of the function to compile
  19. |> without the global optimizer in this case.
  20. |> 
  21.  
  22. Oops, I was wrong.  I double-checked the code to make sure, and
  23. it looks like the intent is to generate code for the __inline
  24. functions so they will work even if GO is not run.  This does
  25. not seem to be working correctly.
  26.  
  27. Until a fix is available, you'll need to create a callable version
  28. of the function (one without the __inline keyword) and link that
  29. in.  A convenient way to do this is to put it in a seperate .o
  30. file, then use the LIB keyword on SC or SLINK to link it into
  31. your program.  This way, if inlining has been done, it won't
  32. get linked in; if not, it will get linked in.
  33.  
  34. -- 
  35.   *****
  36. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  37.  *|. o.| ||                                          1200/2400/9600 Dual
  38.   | o  |//     For all you do, this bug's for you!
  39.   ====== 
  40. usenet: walker@unx.sas.com                            bix: djwalker 
  41. Any opinions expressed are mine, not those of SAS Institute, Inc.